
package com.mt.api.modules.domain.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author plover
 * @description /
 * @date 2020-07-06
 **/
@Data
public class OrderStatByCargoVo implements Serializable {

    /**
     * 款号id
     */
    private Integer cargoId;
    /**
     * 款名称
     */
    private String cargoName;
    /**
     * 款号
     */
    private String cargoNo;
    /**
     * 权重
     */
    private Integer weight;

    @ApiModelProperty(value = "图片地址")
    private String picUrl;

    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "采购价")
    private String purchasePrice;

    @ApiModelProperty(value = "零售价")
    private String retailPrice;

    @ApiModelProperty(value = "批发价")
    private String wholesalePrice;

    @ApiModelProperty(value = "销售金额")
    private String amount;

    @ApiModelProperty(value = "销售数量")
    private Integer qty = 0;

    @ApiModelProperty(value = "已出库数量")
    private Integer outStoreQty = 0;

    @ApiModelProperty(value = "库存数量")
    private Integer stockQty = 0;

    @ApiModelProperty(value = "销售均价")
    private String avgPrice;



    /**
     * 入库记录
     */
    private List<OrderStatByCargoVo.Detail> detailList;

    @Data
    public static class Detail {

        /**
         * 销售日期
         */
        private String orderDate;
        /**
         * 销售数量
         */
        private Integer qty;

        @ApiModelProperty(value = "销售金额")
        private String amount;
    }

}